#include "Queue.h"
#include <iostream>
void Queue::push(int data)
{
	putTail(data);
}

int Queue::front()
{
	return peekHead();
}

int Queue::pop()
{
	return getHead();
}

int Queue::getQueueLength()
{
	return getElemCount();
}

void Queue::printQueue()
{
	using std::cout;
	using std::endl;
	if (count == 0)
	{
		cout << "Queue is empty!" << endl;
		return;
	}
	auto point = dataLinkHead->next;
	cout << "Queue head-->" << dataLinkHead->data;
	while (point)
	{
		cout << " : " << point->data;
		point = point->next;
	}
	cout << endl;
}
